package com.kefu.call.vo;

import cn.hutool.core.bean.BeanUtil;
import com.kefu.call.model.CallVoiceMail;
import com.kefu.common.context.KefuContext;
import com.kefu.common.vo.AbstractUpdateVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;


@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(description = "呼叫留言")
public class CallVoiceMailUpdateVo extends AbstractUpdateVo<CallVoiceMail,String> {

    
	@NotEmpty
    @ApiModelProperty(value = "主键")
    private String uuid;
    @ApiModelProperty(value = "留言状态 0=未处理，1=已处理")
    private Integer msgState;
    @ApiModelProperty(value = "留言类型 0=无效留言，1=有效留言")
    private Integer msgType;
    @ApiModelProperty(value = "备注")
    private String msgDesc;


    @Override
    public CallVoiceMail convert() {
        CallVoiceMail info = BeanUtil.toBean(this, CallVoiceMail.class);
        info.setUpdateUser(KefuContext.getUid());
        return info;
	}
}